import { SHELVES_RECEIVED, SHELVES_INIT } from '../action/actionShelves';
export function shelfList (state = {}, action) {
    switch (action.type) {
    case SHELVES_RECEIVED:
        return Object.assign({}, state, {
            shelves: action.shelves,
        });
    case SHELVES_INIT:
        return Object.assign({}, state, {
            shelves: action.shelves,
        });
    default:
        return state;
    }
}
